﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.OrderPay
{
    /// <summary>
    /// 支付日志（下单待支付，支付成功，支付失败，取消，退款等）
    /// </summary>
    [Table("avisOBOrderPayLog")]
    public class OrderPayLog : Entity
    {

        /// <summary>
        /// 支付方式（ALIPAY支付宝、WECHATPAY微信）
        /// </summary>
        public string PayType { get; set; }

        /// <summary>
        /// 状态（CREATE创建订单，WAITPAY待支付，PAYSUCCESS支付成功，PAYFAILED支付失败，CANCEL取消，REFUND退款）
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 订单主键
        /// </summary>
        public int AvisOBOrderId { get; set; }

        /// <summary>
        /// 交易号（支付流水号，退款流水号）
        /// </summary>
        public string TradeNo { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUser { get; set; }

    }
}

